﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:Converters="clr-namespace:HeritageAcademy.Library.Converters;assembly=HeritageAcademy.Library"
                    xmlns:ViewModel="clr-namespace:HeritageAcademy.Models.ViewModels;assembly=HeritageAcademy.Models" 
                    xmlns:Controls="clr-namespace:HeritageAcademy.Library.Controls;assembly=HeritageAcademy.Library">
    
    <!-- =================== -->
    <!-- Windows transitions -->
    <!-- =================== -->
    
    <Storyboard x:Key="fadeIn">
        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="Visibility">
            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{x:Static Visibility.Visible}"/>
        </ObjectAnimationUsingKeyFrames>
        <DoubleAnimation To="1" Duration="0:0:0.4" Storyboard.TargetProperty="Opacity" />
    </Storyboard>

    <Storyboard x:Key="fadeOut">
        <DoubleAnimation To="0" Duration="0:0:0.4" Storyboard.TargetProperty="Opacity" />
        <ObjectAnimationUsingKeyFrames Duration="0:0:0.4" Storyboard.TargetProperty="Visibility">
            <DiscreteObjectKeyFrame KeyTime="0:0:0.4" Value="{x:Static Visibility.Hidden}"/>
        </ObjectAnimationUsingKeyFrames>
    </Storyboard>
    
    <Storyboard x:Key="fadeInDelayed" BeginTime="0:0:0.6">
        <ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="Visibility">
            <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{x:Static Visibility.Visible}"/>
        </ObjectAnimationUsingKeyFrames>
        <DoubleAnimation To="1" Duration="0:0:0.6" Storyboard.TargetProperty="Opacity" />
    </Storyboard>
    
    <Storyboard x:Key="fadeOutDelayed" BeginTime="0:0:1.6">
        <DoubleAnimation To="0" Duration="0:0:0.4" Storyboard.TargetProperty="Opacity" />
        <ObjectAnimationUsingKeyFrames Duration="0:0:0.4" Storyboard.TargetProperty="Visibility">
            <DiscreteObjectKeyFrame KeyTime="0:0:0.4" Value="{x:Static Visibility.Hidden}"/>
        </ObjectAnimationUsingKeyFrames>
    </Storyboard>

    <!-- ================================================= -->
    <!--            User tile animation                    -->
    <!-- ================================================= -->
    
    <Storyboard x:Key="slideOut">
        <DoubleAnimation To="-10" Duration="0:0:0.2" AccelerationRatio=".8" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" />
    </Storyboard>
    <Storyboard x:Key="slideIn">
        <DoubleAnimation To="0" Duration="0:0:0.4" AccelerationRatio=".8" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" />
    </Storyboard>

    <Storyboard x:Key="slideUp">
        <DoubleAnimation To="0" Duration="0:0:0.4" AccelerationRatio=".8" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)" />
    </Storyboard>

    <Storyboard x:Key="slideDown">
        <DoubleAnimation To="0" Duration="0:0:0.4" AccelerationRatio=".8" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)" />
    </Storyboard>

    <!-- ================================================= -->
    <!-- Window state control buttons style in WindowFrame -->
    <!-- ================================================= -->
    
    <Style x:Key="HighlightButton" TargetType="{x:Type Button}">
        <Setter Property="Margin" Value="4,0,4,0" />
        <Setter Property="Padding" Value="2.5" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="MinWidth" Value="0" />
        <Setter Property="Foreground" Value="#F2AF12" />
        <Setter Property="FontFamily" Value="Arial" />
        <Setter Property="FontSize" Value="9.2pt" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid>
                        <Border x:Name="highlight" Background="Transparent" Opacity="0" BorderBrush="Black" BorderThickness="1" CornerRadius="3"/>
                        <ContentPresenter Margin="{TemplateBinding Padding}" VerticalAlignment="Center"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <EventTrigger RoutedEvent="Mouse.MouseEnter">
                            <BeginStoryboard>
                                <Storyboard>
                                    <DoubleAnimation To=".2" Duration="0:0:0.3" Storyboard.TargetName="highlight" Storyboard.TargetProperty="Opacity" />
                                </Storyboard>
                            </BeginStoryboard>
                        </EventTrigger>
                        <EventTrigger RoutedEvent="Mouse.MouseLeave">
                            <BeginStoryboard>
                                <Storyboard>
                                    <DoubleAnimation To="0" Duration="0:0:0.3" Storyboard.TargetName="highlight" Storyboard.TargetProperty="Opacity" />
                                </Storyboard>
                            </BeginStoryboard>
                        </EventTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- ================================================= -->
    <!--        Main menu items animation                  -->
    <!-- ================================================= -->

    <Storyboard x:Key="MenuItemSlideDown1">
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)">
            <SplineDoubleKeyFrame KeySpline="0,0.83,1,1" KeyTime="00:00:00.4000000" Value="0"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" AccelerationRatio="1.0" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="40"/>
        </DoubleAnimationUsingKeyFrames>
    </Storyboard>
    <Storyboard x:Key="MenuItemSlideDown2">
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)">
            <SplineDoubleKeyFrame KeySpline="0,0.83,1,1" KeyTime="00:00:00.4000000" Value="0"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" AccelerationRatio="0.8" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="60"/>
        </DoubleAnimationUsingKeyFrames>
    </Storyboard>
    <Storyboard x:Key="MenuItemSlideDown3">
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)">
            <SplineDoubleKeyFrame KeySpline="0,0.83,1,1" KeyTime="00:00:00.4000000" Value="0"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" AccelerationRatio="0.6" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="80"/>
        </DoubleAnimationUsingKeyFrames>
    </Storyboard>
    <Storyboard x:Key="MenuItemSlideDown4">
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)">
            <SplineDoubleKeyFrame KeySpline="0,0.83,1,1" KeyTime="00:00:00.4000000" Value="0"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" AccelerationRatio="0.4" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="120"/>
        </DoubleAnimationUsingKeyFrames>
    </Storyboard>
    <Storyboard x:Key="MenuItemFadeOut">
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)">
            <SplineDoubleKeyFrame KeySpline="0,0.83,1,1" KeyTime="00:00:00.4000000" Value="1"/>
            <SplineDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0"/>
        </DoubleAnimationUsingKeyFrames>
    </Storyboard>
    <Storyboard x:Key="MenuItemFadeIn">
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)">
            <SplineDoubleKeyFrame KeySpline="0,0.83,1,1" KeyTime="00:00:00.6000000" Value="1"/>
            <SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="1"/>
        </DoubleAnimationUsingKeyFrames>
    </Storyboard>
    <Storyboard x:Key="MenuItemSlideRight1">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
            <EasingDoubleKeyFrame KeyTime="0" Value="-40"/>
            <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)">
            <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
            <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="1"/>
        </DoubleAnimationUsingKeyFrames>
    </Storyboard>
    <Storyboard x:Key="MenuItemSlideRight2">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
            <EasingDoubleKeyFrame KeyTime="0" Value="-50"/>
            <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)">
            <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
            <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="1"/>
        </DoubleAnimationUsingKeyFrames>
    </Storyboard>
    <Storyboard x:Key="MenuItemSlideRight3">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
            <EasingDoubleKeyFrame KeyTime="0" Value="-60"/>
            <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)">
            <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
            <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="1"/>
        </DoubleAnimationUsingKeyFrames>
    </Storyboard>
    <Storyboard x:Key="MenuItemSlideRight4">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
            <EasingDoubleKeyFrame KeyTime="0" Value="-70"/>
            <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)">
            <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
            <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="1"/>
        </DoubleAnimationUsingKeyFrames>
    </Storyboard>

	<!-- ================================================= -->
	<!-- 					BOOKS.SHOW section             -->
	<!-- ================================================= -->
	
	    <!-- 
    *****************************************************************************
    DATA (CONVERTERS, ETC.) 
    *****************************************************************************
    -->

    <Converters:FlowDocumentToDocumentPaginatorConverter x:Key="FlowDocumentToDocumentPaginatorConverter" />
    <Converters:ColorToBrushConverter x:Key="ColorToBrushConverter" />
    <Converters:MultiplyByParameterConverter x:Key="MultiplyByParameterConverter" UseRounding="True" />
    <Converters:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />   
    <Converters:BoolToBoolConverter x:Key="BoolToBoolConverter" />
    <Converters:IntToVisibilityConverter x:Key="IntToVisibilityConverter" />
    <Converters:IntToVisibilityConverter x:Key="SingleToVisibilityConverter" Threshold="1" />
    <Converters:MultiplyConverter x:Key="MultiplyConverter" />
    <!-- see OptionsView.xaml resources section-->
    <Converters:ZoomToFontSizeConverter x:Key="ZoomToFontSizeConverter" />
    <!-- see ReadingView.xaml resources section
    <Converters:BoolToVisibilityConverter x:Key="InvertedBoolToVisibilityConverter" IsInverted="True" />
    <Converters:MaxCoverter x:Key="AtLeastOneConverter" CompareValue="1" />
    -->

    <!-- 
    *****************************************************************************
    COMMON BRUSHES AND TEXT STYLES 
    *****************************************************************************
    -->

    <FontFamily x:Key="PrimaryFontFamily">..\Fonts\#Segoe UI</FontFamily>

    <Color x:Key="StandardForegroundColor">#404A4D</Color>
    <SolidColorBrush x:Key="StandardForegroundBrush" Color="{StaticResource StandardForegroundColor}" />

    <Color x:Key="LibraryBackgroundColor">#FFFFFF</Color>
    <SolidColorBrush x:Key="LibraryBackgroundBrush" Color="{StaticResource LibraryBackgroundColor}" />

    <Color x:Key="SelectionColor">#FD6A00</Color>
    <SolidColorBrush x:Key="SelectionBrush" Color="{StaticResource SelectionColor}" />

    <Color x:Key="TransparentSelectionColor">#00FD6A00</Color>
    <SolidColorBrush x:Key="TransparentSelectionBrush" Color="{StaticResource TransparentSelectionColor}" />

    <LinearGradientBrush x:Key="LogoBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFE6B00" Offset="0.076"/>
        <GradientStop Color="#FFD74400" Offset="0.992"/>
        <GradientStop Color="#FFDB6832" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="HeaderBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="#FF4B565A"/>
        <GradientStop Color="#FF242A2A" Offset="0.961"/>
        <GradientStop Color="#FF2B3132" Offset="0.763"/>
        <GradientStop Color="#FF424C4F" Offset="0.259"/>
        <GradientStop Color="#FF191D1D" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="SoftDarkUIBrush" StartPoint="0,0" EndPoint="0.5,1">
        <GradientStop Color="#474E51"/>
        <GradientStop Color="#384043" Offset="1"/>
    </LinearGradientBrush>
    
    <!-- 
    *****************************************************************************
    COMMON GRAPHICS AND PATH DATA 
    *****************************************************************************
    -->

    <!-- Common Shapes -->

    <Geometry x:Key="DownArrow">M0,0 L1,0 0.5,1Z</Geometry>
    <Geometry x:Key="UpArrow">M0,1 L1,1 0.5,0Z</Geometry>
    <Geometry x:Key="RightArrow">M0,0 L1,0.5 0,1Z</Geometry>
    <Geometry x:Key="LeftArrow">M0,0.5 L1,1 1,0Z</Geometry>
    <Geometry x:Key="CloseX">M0,0 L1,1 M0,1 L1,0</Geometry>
    <Geometry x:Key="HorizontalLine">M0,0 L0,1</Geometry>
    <Geometry x:Key="VerticalLine">M0,0 L1,0</Geometry>
    <Geometry x:Key="LeftRightDiagonalLine">M0,0 L1,1</Geometry>
    <Geometry x:Key="RightLeftDiagonalLine">M1,0 L0,1</Geometry>
    <Geometry x:Key="RightTriangle">M0,0 L0,1 L1,1Z</Geometry>
    <Geometry x:Key="LeftTriangle">M1,0 L1,1 L0,1Z</Geometry>
    <Geometry x:Key="LeftTriangleFlipped">M1,1 L1,0 L0,0Z</Geometry>

    <!-- Application Icons -->

    <Geometry x:Key="Bookmark">F1M11.179,2.314C11.178,1.654 10.642,1.121 9.982,1.122 9.982,1.122 3.033,1.137 3.033,1.137 2.374,1.138 1.839,1.673 1.841,2.333 1.841,2.333 1.878,20.309 1.878,20.309 1.878,20.348 1.885,20.382 1.889,20.42 1.889,20.42 5.696,16.598 5.696,16.598 6.162,16.131 6.917,16.128 7.385,16.594 7.385,16.594 11.206,20.4 11.206,20.4 11.208,20.363 11.217,20.329 11.217,20.29 11.217,20.29 11.207,15.775 11.207,15.775</Geometry>
    <Geometry x:Key="Thumbnails">M9,9 L11,9 11,11 9,11 z M6,9 L8,9 8,11 6,11 z M3,9 L5,9 5,11 3,11 z M0,9 L2,9 2,11 0,11 z M9,6 L11,6 11,8 9,8 z M6,6 L8,6 8,8 6,8 z M3,6 L5,6 5,8 3,8 z M0,6 L2,6 2,8 0,8 z M9,3 L11,3 11,5 9,5 z M6,3 L8,3 8,5 6,5 z M3,3 L5,3 5,5 3,5 z M0,3 L2,3 2,5 0,5 z M9,0 L11,0 11,2 9,2 z M6,0 L8,0 8,2 6,2 z M3,0 L5,0 5,2 3,2 z M0,0 L2,0 2,2 0,2 z</Geometry>
    <Geometry x:Key="ReadingOptions">M9.65,13.17 L6.53,21.96 L12.15,21.96 z M8.96,8.96 L13.14,8.96 L18.29,26.46 C18.52,27.25 18.71,27.80 18.87,28.13 C19.03,28.46 19.23,28.72 19.48,28.93 C19.73,29.13 20.08,29.28 20.53,29.37 L20.53,30.40 L11.90,30.40 L11.90,29.37 C12.44,29.31 12.84,29.16 13.10,28.92 C13.36,28.68 13.5,28.34 13.5,27.90 C13.5,27.58 13.46,27.22 13.39,26.82 C13.31,26.43 13.19,25.93 13.03,25.32 L12.60,23.79 L5.93,23.79 L5.42,25.28 C5.27,25.69 5.15,26.10 5.06,26.49 C4.96,26.88 4.92,27.29 4.92,27.73 C4.92,28.75 5.46,29.30 6.54,29.37 L6.54,30.40 L-0.12,30.40 L-0.12,29.37 C0.26,29.33 0.59,29.19 0.89,28.96 C1.18,28.74 1.44,28.42 1.68,28.03 C1.92,27.63 2.18,27.06 2.45,26.32 z M30.92,23.03 C29.30,23.07 28.11,23.37 27.33,23.93 C26.56,24.50 26.17,25.32 26.17,26.40 C26.17,27.05 26.34,27.54 26.70,27.88 C27.05,28.22 27.54,28.39 28.17,28.39 C28.65,28.39 29.10,28.26 29.53,28.00 C29.95,27.75 30.29,27.41 30.54,26.98 C30.79,26.55 30.92,26.10 30.92,25.62 z M30.14,14.65 C31.40,14.65 32.40,14.82 33.16,15.15 C33.91,15.48 34.48,16.03 34.86,16.78 C35.23,17.53 35.42,18.56 35.42,19.89 L35.42,25.98 C35.42,26.67 35.43,27.20 35.46,27.57 C35.50,27.95 35.55,28.23 35.61,28.41 C35.68,28.59 35.77,28.74 35.87,28.85 C35.97,28.96 36.10,29.04 36.25,29.11 C36.40,29.18 36.69,29.27 37.11,29.37 L37.11,30.40 L31.29,30.40 L31.43,28.35 L31.20,28.28 C30.34,29.11 29.51,29.71 28.71,30.09 C27.90,30.46 27.04,30.65 26.14,30.65 C25.24,30.65 24.46,30.49 23.80,30.16 C23.14,29.83 22.64,29.38 22.30,28.79 C21.96,28.21 21.79,27.54 21.79,26.78 C21.79,25.25 22.55,24.04 24.05,23.16 C25.56,22.28 27.84,21.72 30.90,21.50 L30.90,20.01 C30.90,19.04 30.79,18.29 30.57,17.77 C30.36,17.24 30.07,16.87 29.73,16.66 C29.39,16.45 28.97,16.34 28.50,16.34 C28.02,16.34 27.60,16.42 27.25,16.59 C26.90,16.76 26.59,17.07 26.31,17.53 C26.03,18.00 25.82,18.64 25.68,19.46 L22.73,19.46 L22.73,16.62 C23.69,16.19 24.49,15.87 25.12,15.64 C25.76,15.41 26.38,15.22 27.00,15.07 C27.62,14.91 28.18,14.81 28.67,14.75 C29.16,14.68 29.65,14.65 30.14,14.65 z</Geometry>
    <Geometry x:Key="Registration">M4.359375,4.31151008605957C4.90625,4.31151008605957,5.3583984375,4.36815071105957,5.7158203125,4.48143196105957C6.07324171066284,4.59471321105957,6.36914014816284,4.80174493789673,6.603515625,5.10252571105957C6.83789014816284,5.40330743789673,6.95507764816284,5.76658868789673,6.955078125,6.19236946105957C6.95507764816284,6.54393196105957,6.87304639816284,6.88377571105957,6.708984375,7.21190071105957C6.54492139816284,7.54002571105957,6.31640577316284,7.81932258605957,6.0234375,8.04979133605957C5.73046875,8.28026008605957,5.43359375,8.44529914855957,5.1328125,8.54490852355957C4.83203125,8.64451789855957,4.51953125,8.69432258605957,4.1953125,8.69432258605957C3.95312476158142,8.69432258605957,3.68359351158142,8.66697883605957,3.38671875,8.61229133605957L3.287109375,8.25486946105957L3.33984375,8.19627571105957C3.63281226158142,8.26268196105957,3.87109351158142,8.29588508605957,4.0546875,8.29588508605957C4.56640625,8.29588508605957,4.9775390625,8.12693977355957,5.2880859375,7.78904914855957C5.5986328125,7.45115852355957,5.75390625,7.01854133605957,5.75390625,6.49119758605957C5.75390625,5.95994806289673,5.5927734375,5.53611993789673,5.2705078125,5.21971321105957C4.9482421875,4.90330743789673,4.4609375,4.74510431289673,3.80859375,4.74510383605957C3.45312476158142,4.74510431289673,3.06249976158142,4.81151056289673,2.63671875,4.94432258605957C2.6015625,5.24510431289673,2.583984375,5.97166681289673,2.583984375,7.12401008605957L2.583984375,9.83690071105957L2.58984375,10.9794788360596C2.59375,11.4208850860596,2.60546875,11.7060413360596,2.625,11.8349475860596C2.64453125,11.9638538360596,2.6728515625,12.0497913360596,2.7099609375,12.0927600860596C2.7470703125,12.1357288360596,2.818359375,12.1718616485596,2.923828125,12.2011585235596C3.02929663658142,12.2304553985596,3.28906226158142,12.2529163360596,3.703125,12.2685413360596L3.75,12.3036975860596L3.75,12.5966663360596L3.703125,12.6435413360596C2.70703125,12.6122913360596,2.146484375,12.5966663360596,2.021484375,12.5966663360596C1.88867175579071,12.5966663360596,1.33007800579071,12.6122913360596,0.345703065395355,12.6435413360596L0.298828125,12.5966663360596L0.298828125,12.3036975860596L0.345703065395355,12.2685413360596C0.708984315395355,12.2529163360596,0.951171815395355,12.2333850860596,1.072265625,12.2099475860596C1.193359375,12.1865100860596,1.2744140625,12.1562366485596,1.3154296875,12.1191272735596C1.3564453125,12.0820178985596,1.3896484375,12.0029163360596,1.4150390625,11.8818225860596C1.4404296875,11.7607288360596,1.455078125,11.4911975860596,1.458984375,11.0732288360596L1.46484375,9.83690071105957L1.46484375,7.12401008605957L1.453125,5.98143196105957C1.44921875,5.53611993789673,1.4384765625,5.24901056289673,1.4208984375,5.12010383605957C1.4033203125,4.99119806289673,1.3759765625,4.90526056289673,1.3388671875,4.86229133605957C1.3017578125,4.81932306289673,1.23046875,4.78416681289673,1.12499988079071,4.75682258605957C1.01953125,4.72947931289673,0.759765565395355,4.70799493789673,0.345703065395355,4.69236946105957L0.298828125,4.65135383605957L0.298828125,4.35838508605957L0.345703065395355,4.31736946105957C1.33007800579071,4.34861946105957,1.95703113079071,4.36424446105957,2.2265625,4.36424446105957C2.59375,4.36424446105957,3.005859375,4.35447883605957,3.462890625,4.33494758605957C3.94726538658142,4.31932258605957,4.24609375,4.31151008605957,4.359375,4.31151008605957z</Geometry>
    <Geometry x:Key="HouseBack">M3.7,4.6C3.7,4.6 3.7,12.4 3.7,12.4 3.7,12.4 0,8.5 0,8.5 0,8.5 3.7,4.6 3.7,4.6z M14.1,0C14.2,2.3E-07 14.2,0.0 14.3,0.0 14.3,0.0 21.5,7.2 21.5,7.2 21.6,7.3 21.6,7.4 21.5,7.5 21.5,7.5 20.7,8.3 20.7,8.3 20.6,8.4 20.5,8.4 20.4,8.3 20.4,8.3 20.2,8.2 20.2,8.2 20.2,8.2 20.2,14.3 20.2,14.3 20.2,14.3 8.0,14.3 8.0,14.3 8.0,14.3 8.0,8.2 8.0,8.2 8.0,8.2 7.8,8.3 7.8,8.3 7.7,8.4 7.6,8.4 7.5,8.3 7.5,8.3 6.7,7.5 6.7,7.5 6.6,7.4 6.6,7.3 6.7,7.2 6.7,7.2 13.9,0.0 13.9,0.0 14.0,0.0 14.0,2.3E-07 14.1,0z</Geometry>
    <Geometry x:Key="TextComment">F1M278.7,398.8C277.4,398.8,276.3,397.7,276.3,396.3C276.3,395.0,277.4,393.9,278.7,393.9C280.1,393.9,281.2,395.0,281.2,396.3C281.2,397.7,280.1,398.8,278.7,398.8 M270.8,398.8C269.4,398.8,268.3,397.7,268.3,396.3C268.3,395.0,269.4,393.9,270.8,393.9C272.2,393.9,273.3,395.0,273.3,396.3C273.3,397.7,272.2,398.8,270.8,398.8 M262.9,398.8C261.5,398.8,260.4,397.7,260.4,396.3C260.4,395.0,261.5,393.9,262.9,393.9C264.2,393.9,265.3,395.0,265.3,396.3C265.3,397.7,264.2,398.8,262.9,398.8 M271.0,382.4C261.8,382.4,254.3,388.4,254.3,395.8C254.3,399.1,255.8,402.1,258.2,404.4L256.6,411.2L264.0,408.0C266.1,408.8,268.5,409.3,271.0,409.3C280.3,409.3,287.8,403.3,287.8,395.8C287.8,388.4,280.3,382.4,271.0,382.4</Geometry>
    <Geometry x:Key="TableOfContents">M0,9L12,9 12,10.9625 0,11z M0,6L8,6 8,8 0,8z M0,3L12,3 12,5 0,5z M0,0L12,0 12,2 0,2z</Geometry>
    <Geometry x:Key="TableOfContentsTouch">M0,15 L19,15 19,17.9625 0,18 z M0,10 L15,10 15,13 0,13 z M0,5 L19,5 19,8 0,8 z M0,0 L19,0 19,3 0,3 z</Geometry>
    <Geometry x:Key="Highlight">M7.3,28.4 L24.1,28.4 C24.7,28.4 25.2,28.9 25.2,29.5 25.2,30.0 24.7,30.5 24.1,30.5 L7.3,30.5 C6.7,30.5 6.2,30.0 6.2,29.5 6.2,28.9 6.7,28.4 7.3,28.4 z M13.8,4.0 L20.6,9.7 9.8,24.4 C9.5,24.9 9.0,25.3 8.5,25.6 L6.3,25.3 3.0,29.7 0,27.5 3.2,22.9 C3.2,22.9 2.1,20.9 2.0,20.9 2.1,20.3 2.4,19.6 2.8,19.1 z</Geometry>

    <!-- 
    *****************************************************************************
    DEFAULT CONTROL STYLES 
    *****************************************************************************
    -->

    <!-- ScrollBar -->

    <Style x:Key="ScrollBarPageButton" TargetType="{x:Type RepeatButton}">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Focusable" Value="false"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Border Background="Transparent"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style x:Key="HorizontalScrollBarThumb" TargetType="{x:Type Thumb}">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Focusable" Value="false"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Thumb}">
                    <Grid Background="Transparent">
                        <Border Height="8" Background="#3C4547" BorderThickness="0.5,1" CornerRadius="3"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style x:Key="VerticalScrollBarThumb" TargetType="{x:Type Thumb}">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="IsTabStop" Value="false"/>
        <Setter Property="Focusable" Value="false"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Thumb}">
                    <Grid Background="Transparent">
                        <Border Width="8" Background="#3C4547" BorderThickness="1,0.5" CornerRadius="3"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <ControlTemplate x:Key="VerticalScrollBar" TargetType="{x:Type ScrollBar}">
        <Grid Width="26">
            <Border Width="6" Background="#183C4547" CornerRadius="3"/>
            <Track Name="PART_Track" IsDirectionReversed="true">
                <Track.DecreaseRepeatButton>
                    <RepeatButton Command="ScrollBar.PageUpCommand" Style="{StaticResource ScrollBarPageButton}"/>
                </Track.DecreaseRepeatButton>
                <Track.Thumb>
                    <Thumb x:Name="Thumb" Opacity="0.25" Style="{StaticResource VerticalScrollBarThumb}"/>
                </Track.Thumb>
                <Track.IncreaseRepeatButton>
                    <RepeatButton Command="ScrollBar.PageDownCommand" Style="{StaticResource ScrollBarPageButton}"/>
                </Track.IncreaseRepeatButton>
            </Track>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Trigger.EnterActions>
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimation Duration="0:0:0.25" Storyboard.TargetName="Thumb" Storyboard.TargetProperty="Opacity" To="1"/>
                        </Storyboard>
                    </BeginStoryboard>
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimation Duration="0:0:0.25" Storyboard.TargetName="Thumb" Storyboard.TargetProperty="Opacity"/>
                        </Storyboard>
                    </BeginStoryboard>
                </Trigger.ExitActions>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    
    <ControlTemplate x:Key="HorizontalScrollBar" TargetType="{x:Type ScrollBar}">
        <Grid Height="26">
            <Border Height="6" Background="#18000000" CornerRadius="3"/>
            <Track Name="PART_Track" IsDirectionReversed="false">
                <Track.DecreaseRepeatButton>
                    <RepeatButton Command="ScrollBar.PageUpCommand" Style="{StaticResource ScrollBarPageButton}"/>
                </Track.DecreaseRepeatButton>
                <Track.Thumb>
                    <Thumb x:Name="Thumb" Opacity="0.25" Style="{StaticResource HorizontalScrollBarThumb}"/>
                </Track.Thumb>
                <Track.IncreaseRepeatButton>
                    <RepeatButton Command="ScrollBar.PageDownCommand" Style="{StaticResource ScrollBarPageButton}"/>
                </Track.IncreaseRepeatButton>
            </Track>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Trigger.EnterActions>
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimation Duration="0:0:0.25" Storyboard.TargetName="Thumb" Storyboard.TargetProperty="Opacity" To="1"/>
                        </Storyboard>
                    </BeginStoryboard>
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                    <BeginStoryboard>
                        <Storyboard>
                            <DoubleAnimation Duration="0:0:0.25" Storyboard.TargetName="Thumb" Storyboard.TargetProperty="Opacity"/>
                        </Storyboard>
                    </BeginStoryboard>
                </Trigger.ExitActions>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    
    <Style TargetType="{x:Type ScrollBar}">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="SnapsToDevicePixels" Value="True"/>
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="Template" Value="{StaticResource VerticalScrollBar}"/>
        <Style.Triggers>
            <Trigger Property="Orientation" Value="Horizontal">
                <Setter Property="Template" Value="{StaticResource HorizontalScrollBar}"/>
            </Trigger>
        </Style.Triggers>
    </Style>

    <!-- 
    *****************************************************************************
    OTHER NAMED RESOURCES 
    *****************************************************************************
    -->

    <!-- FadeContentControl -->

    <Style x:Key="FadeContentControl" TargetType="ContentControl">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <ContentPresenter x:Name="cp" />
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="False">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" To="0.25" Duration="00:00:00.2" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" Duration="00:00:00.2" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- InvisibleToggleButton -->

    <Style x:Key="InvisibleToggleButton" TargetType="{x:Type ToggleButton}">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <Border x:Name="Border" Background="Transparent">
                        <ContentPresenter
                              Margin="2"
                              HorizontalAlignment="Center"
                              VerticalAlignment="Center"
                              RecognizesAccessKey="True"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- InvisibleButton -->

    <Style x:Key="InvisibleButton" TargetType="{x:Type Button}">
        <Setter Property="OverridesDefaultStyle" Value="True"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}" />
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Padding" Value="2"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="Border" Background="Transparent">
                        <ContentPresenter
                              Margin="{TemplateBinding Padding}"
                              HorizontalAlignment="Center"
                              VerticalAlignment="Center"
                              RecognizesAccessKey="True"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- OpacityButton -->

    <Style x:Key="OpacityButton" TargetType="{x:Type Button}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Focusable" Value="False"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Padding" Value="2"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="Border" Background="Transparent">
                        <ContentPresenter
                              x:Name="cp"
                              Opacity="0.5"
                              Margin="{TemplateBinding Padding}"
                              HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                              VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                              RecognizesAccessKey="True"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="True" >
                            <Setter TargetName="cp" Property="RenderTransform">
                                <Setter.Value>
                                    <TranslateTransform Y="1" />
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" To="1.0" Duration="00:00:00.1" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" Duration="00:00:00.2" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" To="0.1" Duration="00:00:00.1" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" Duration="00:00:00.2" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- OpacityRepeatButton -->

    <Style x:Key="OpacityRepeatButton" TargetType="{x:Type RepeatButton}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Focusable" Value="False"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Padding" Value="2"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Border x:Name="Border" Background="Transparent">
                        <ContentPresenter
                              x:Name="cp"
                              Opacity="0.5"
                              Margin="{TemplateBinding Padding}"
                              HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                              VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                              RecognizesAccessKey="True"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="True" >
                            <Setter TargetName="cp" Property="RenderTransform">
                                <Setter.Value>
                                    <TranslateTransform Y="1" />
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" To="1.0" Duration="00:00:00.1" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" Duration="00:00:00.2" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" To="0.1" Duration="00:00:00.1" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" Duration="00:00:00.2" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- OpacityInvisibleToggleButton -->

    <Style x:Key="OpacityInvisibleToggleButton" TargetType="{x:Type ToggleButton}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Padding" Value="2"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <Border x:Name="Border" Background="Transparent">
                        <ContentPresenter
                          x:Name="cp"
                          Opacity="0.5"
                          Margin="{TemplateBinding Padding}"
                          HorizontalAlignment="Center"
                          VerticalAlignment="Center"
                          RecognizesAccessKey="True"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="cp" Property="Opacity" Value="1.0" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- BottomIconToggleButton -->

    <Style x:Key="BottomIconToggleButton" TargetType="{x:Type ToggleButton}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Padding" Value="2"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <Border x:Name="Border" Background="Transparent" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Path 
                            x:Name="cp"
                            Opacity="0.5"
                            Stretch="Uniform" 
                            Data="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content}" 
                            Margin="{TemplateBinding Padding}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                            Fill="#303030" />
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="True" >
                            <Setter TargetName="cp" Property="RenderTransform">
                                <Setter.Value>
                                    <TranslateTransform Y="1" />
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" To="1.0" Duration="00:00:00.1" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" Duration="00:00:00.2" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" To="0.1" Duration="00:00:00.1" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" Duration="00:00:00.2" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- BottomTextToggleButton -->

    <Style x:Key="BottomTextToggleButton" TargetType="{x:Type ToggleButton}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Padding" Value="2"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <Border x:Name="Border" Background="Transparent" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <TextBlock 
                            x:Name="tb" 
                            Opacity="0.5" 
                            Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content}" 
                            Margin="{TemplateBinding Padding}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                            Foreground="#303030" />
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="True" >
                            <Setter TargetName="tb" Property="RenderTransform">
                                <Setter.Value>
                                    <TranslateTransform Y="1" />
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="tb" Storyboard.TargetProperty="Opacity" To="1.0" Duration="00:00:00.1" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="tb" Storyboard.TargetProperty="Opacity" Duration="00:00:00.2" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="tb" Storyboard.TargetProperty="Opacity" To="0.1" Duration="00:00:00.1" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="tb" Storyboard.TargetProperty="Opacity" Duration="00:00:00.2" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- TopIconToggleButton -->

    <Style x:Key="TopIconToggleButton" TargetType="{x:Type ToggleButton}" x:Shared="False">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <Border x:Name="Border" Background="Transparent" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Path 
                          x:Name="cp"
                          Opacity="0.2"
                          Stretch="None" 
                          SnapsToDevicePixels="True"
                          Data="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content}" 
                          Margin="{TemplateBinding Padding}"
                          HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                          VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                            <Path.Fill>
                                <SolidColorBrush Color="{DynamicResource PageTextColor}" />
                            </Path.Fill>
                        </Path>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="True" >
                            <Setter TargetName="cp" Property="RenderTransform">
                                <Setter.Value>
                                    <TranslateTransform Y="1" />
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="IsChecked" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" To="1.0" Duration="00:00:00.1" />
                                        <ColorAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)" To="{StaticResource SelectionColor}" Duration="00:00:00.1" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" Duration="00:00:00.1" />
                                        <ColorAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)" Duration="00:00:00.1" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" To="1.0" Duration="00:00:00.1" />
                                        <ColorAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)" To="{StaticResource SelectionColor}" Duration="00:00:00.1" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" Duration="00:00:00.1" />
                                        <ColorAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)" Duration="00:00:00.1" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- TextButton -->

    <Style x:Key="TextButton" TargetType="{x:Type Button}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Padding" Value="2"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="Border" Background="Transparent" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <TextBlock 
                            x:Name="tbtn" 
                            Opacity="0.5" 
                            Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content}" 
                            Margin="{TemplateBinding Padding}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                            Foreground="#303030" />
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="True" >
                            <Setter TargetName="tbtn" Property="RenderTransform">
                                <Setter.Value>
                                    <TranslateTransform Y="1" />
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="tbtn" Storyboard.TargetProperty="Opacity" To="1.0" Duration="00:00:00.1" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="tbtn" Storyboard.TargetProperty="Opacity" Duration="00:00:00.2" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="tbtn" Storyboard.TargetProperty="Opacity" To="0.1" Duration="00:00:00.1" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="tbtn" Storyboard.TargetProperty="Opacity" Duration="00:00:00.2" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- RevealOnMouseOverContainer -->

    <Style x:Key="RevealOnMouseOverContainer" TargetType="ContentControl">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Border Background="Transparent">
                        <ContentPresenter x:Name="cp" Opacity="0" />
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" To="1.0" Duration="00:00:00.1" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="cp" Storyboard.TargetProperty="Opacity" Duration="00:00:00.1" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- BookmarkButton -->

    <Style x:Key="BookmarkButton" TargetType="{x:Type ToggleButton}">
        <Setter Property="SnapsToDevicePixels" Value="true"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <Grid Background="Transparent">
                        <Path x:Name="BookmarkIcon" Data="{StaticResource Bookmark}" Stretch="None" Fill="{DynamicResource PageTextBrush}" Opacity="0.25" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="30,0,0,25"  RenderTransformOrigin="0.5,0.5" />
                        <Path x:Name="BookmarkIconOver" Data="{StaticResource Bookmark}" Stretch="None" Fill="{DynamicResource SelectionBrush}" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="30,0,0,25" Opacity="0" RenderTransformOrigin="0.5,0.5"  />
                        <Grid x:Name="DogearGrid" Opacity="0" Background="{DynamicResource BookBackgroundBrush}" Margin="0,-5,-5,0">
                            <Path Data="M0.15,0 L0,1 L1,0.9 Z" Stretch="Fill" Margin="0,23,23,-2" Fill="#A000">
                                <Path.Effect>
                                    <BlurEffect Radius="14" />
                                </Path.Effect>
                            </Path>

                            <Path Data="M0,0 L0,1 L1,1 Z" Stretch="Fill" Margin="0,10,10,0" Fill="{DynamicResource PageBackgroundBrush}" >
                                <Path.Effect>
                                    <DropShadowEffect Direction="45" BlurRadius="8" ShadowDepth="4" Opacity="0.25" />
                                </Path.Effect>
                            </Path>
                            <Path Data="M0,0 L0,1 L1,1 Z" Stretch="Fill" Margin="0,10,10,0">
                                <Path.Fill>
                                    <LinearGradientBrush  StartPoint="1,0" EndPoint="0,1">
                                        <GradientStop Color="#2C000000" Offset="0.5"/>
                                        <GradientStop Color="#1C000000" Offset="0.55"/>
                                        <GradientStop Color="#10000000" Offset="0.65"/>
                                        <GradientStop Color="#00000000" Offset="1"/>
                                    </LinearGradientBrush>
                                </Path.Fill>
                            </Path>

                            <Path x:Name="CloseXIcon" Data="{StaticResource CloseX}" Width="8" Height="8" Stroke="#303030" StrokeThickness="2" Stretch="Fill" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="15" Opacity="0.2" />
                        </Grid>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="CloseXIcon" Storyboard.TargetProperty="Opacity" To="1" Duration="00:00:00.1" />
                                        <DoubleAnimation Storyboard.TargetName="BookmarkIconOver" Storyboard.TargetProperty="Opacity" To="1" Duration="00:00:00.1" />
                                        <DoubleAnimation Storyboard.TargetName="BookmarkIcon" Storyboard.TargetProperty="Opacity" To="0" Duration="00:00:00.0" BeginTime="00:00:00.1"/>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="CloseXIcon" Storyboard.TargetProperty="Opacity" Duration="00:00:00.2" />
                                        <DoubleAnimation Storyboard.TargetName="BookmarkIconOver" Storyboard.TargetProperty="Opacity" Duration="00:00:00.2" />
                                        <DoubleAnimation Storyboard.TargetName="BookmarkIcon" Storyboard.TargetProperty="Opacity" Duration="00:00:00.0" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="IsChecked" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="DogearGrid" Storyboard.TargetProperty="Opacity" To="1" Duration="00:00:00.15" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="DogearGrid" Storyboard.TargetProperty="Opacity" Duration="00:00:00.15" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>
                        <DataTrigger Binding="{Binding Source={x:Static ViewModel:OptionsViewModel.Current}, Path=IsTouchResizeEnabled}" Value="True">
                            <Setter TargetName="CloseXIcon" Property="Width" Value="12" />
                            <Setter TargetName="CloseXIcon" Property="Height" Value="12" />
                            <Setter TargetName="BookmarkIcon" Property="RenderTransform">
                                <Setter.Value>
                                    <ScaleTransform ScaleX="1.2" ScaleY="1.2" />
                                </Setter.Value>
                            </Setter>
                            <Setter TargetName="BookmarkIconOver" Property="RenderTransform">
                                <Setter.Value>
                                    <ScaleTransform ScaleX="1.2" ScaleY="1.2" />
                                </Setter.Value>
                            </Setter>
                        </DataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- InvisibleThumb -->

    <Style x:Key="InvisibleThumb" TargetType="Thumb">
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Thumb">
                    <Border Background="{TemplateBinding Background}" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Visibility" Value="Visible" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding Source={x:Static Application.Current}, Path=MainWindow.WindowState}" Value="Maximized">
                <Setter Property="Visibility" Value="Collapsed" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <!-- AnootationsOptionsContainer -->

    <Style x:Key="AnnotationOptionsContainer" TargetType="ContentControl">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Grid>
                        <Controls:CalloutShape ArrowPlacement="Bottom" ArrowAlignment="Left" ArrowWidth="10" ArrowHeight="8" StrokeThickness="1" SnapsToDevicePixels="True" Fill="{DynamicResource BookBackgroundBrush}" Stroke="#5f6264" >
                            <Controls:CalloutShape.Effect>
                                <DropShadowEffect  BlurRadius="5" Direction="-90" ShadowDepth="1" Color="Black" Opacity="0.12" />
                            </Controls:CalloutShape.Effect>
                            <Controls:CalloutShape.LayoutTransform>
                                <RotateTransform Angle="90" />
                            </Controls:CalloutShape.LayoutTransform>
                        </Controls:CalloutShape>

                        <Controls:CalloutShape ArrowPlacement="Bottom" ArrowAlignment="Left" ArrowWidth="10" ArrowHeight="8" StrokeThickness="1" SnapsToDevicePixels="True" Fill="{DynamicResource BookBackgroundBrush}" Stroke="{DynamicResource StandardForegroundBrush}" >
                            <Controls:CalloutShape.LayoutTransform>
                                <RotateTransform Angle="90" />
                            </Controls:CalloutShape.LayoutTransform>
                        </Controls:CalloutShape>
                        <Border Margin="8,0,0,0">
                            <ContentPresenter />
                        </Border>
                    </Grid>

                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- PagingListBox -->

    <Style x:Key="PagingListBox" TargetType="{x:Type ListBox}">
        <Setter Property="SnapsToDevicePixels" Value="true"/>
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="Visibility" Value="Visible"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ListBox}">
                    <StackPanel x:Name="ItemsHost" IsItemsHost="True" Orientation="Horizontal"/>
                    <ControlTemplate.Triggers>
                        <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Items.Count}" Value="1">
                            <Setter Property="Opacity" Value="0" />
                        </DataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemContainerStyle">
            <Setter.Value>
                <Style  TargetType="{x:Type ListBoxItem}">
                    <Setter Property="SnapsToDevicePixels" Value="true"/>
                    <Setter Property="OverridesDefaultStyle" Value="true"/>
                    <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
                    <Setter Property="Cursor" Value="Hand"/>
                    <Setter Property="Foreground" Value="White"/>
                    <Setter Property="FontSize" Value="13"/>
                    <Setter Property="FontWeight" Value="Bold"/>
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="{x:Type ListBoxItem}">
                                <Border Background="Transparent">

                                    <Border x:Name="SelectionBorder" Width="28" Height="28" Background="#E0E0E0" Margin="8,0" CornerRadius="1" >
                                        <ContentPresenter HorizontalAlignment="Center" Margin="0" VerticalAlignment="Center"/>
                                    </Border>
                                </Border>
                                <ControlTemplate.Triggers>
                                    <Trigger Property="IsMouseOver" Value="True">
                                        <Setter TargetName="SelectionBorder" Property="Background" Value="#D0D0D0"/>
                                    </Trigger>
                                    <Trigger Property="IsSelected" Value="True">
                                        <Setter TargetName="SelectionBorder" Property="Background" Value="{StaticResource LogoBackgroundBrush}"/>
                                    </Trigger>
                                </ControlTemplate.Triggers>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- PagingAdorningListBox -->

    <Style x:Key="PagingAdorningListBox" TargetType="{x:Type ListBox}">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="SnapsToDevicePixels" Value="true"/>
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:AdorningListBox}">

                    <Grid>
                        <Border Background="#F0F0F0" Margin="4" />
                        <Canvas>
                            <Border x:Name="IndicatorBorder" Canvas.Left="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedElementOffsetX}" Height="34" Width="54">
                                <Border Background="{StaticResource SelectionBrush}" Width="34" Height="20" BorderBrush="#4000" BorderThickness="1,0" HorizontalAlignment="Center" VerticalAlignment="Center" />
                            </Border>
                        </Canvas>
                        <StackPanel Orientation="Horizontal" IsItemsHost="True" />
                        <!--<Border Background="White" Width="54" Margin="-54,0,54,0" />
                        <Border Background="White" Width="54" Margin="54,0,-54,0" />-->
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemContainerStyle">
            <Setter.Value>
                <Style TargetType="{x:Type ListBoxItem}">
                    <Setter Property="SnapsToDevicePixels" Value="true"/>
                    <Setter Property="OverridesDefaultStyle" Value="true"/>
                    <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
                    <Setter Property="Cursor" Value="Hand" />
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="{x:Type ListBoxItem}">
                                <Grid x:Name="Grid" Background="Transparent">
                                    <Path Fill="White" Stretch="None" Stroke="Black" StrokeThickness="0"  Width="54" Height="34" Data="M27,10 C23.134007,10 20,13.134007 20,17 20,20.865993 23.134007,24 27,24 30.865993,24 34,20.865993 34,17 34,13.134007 30.865993,10 27,10 z M0,0 L54,0 54,34 0,34 z"/>
                                    <Ellipse x:Name="Shadow" StrokeThickness="1" Width="14" Height="14">
                                        <Ellipse.Stroke>
                                            <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                                <GradientStop Color="#6000" Offset="0" />
                                                <GradientStop Color="#1000" Offset="0.5" />
                                            </LinearGradientBrush>
                                        </Ellipse.Stroke>
                                    </Ellipse>
                                </Grid>
                                <ControlTemplate.Triggers>
                                    <Trigger Property="IsMouseOver" Value="True">
                                        <Setter TargetName="Shadow" Property="Stroke">
                                            <Setter.Value>
                                                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                                    <GradientStop Color="#A000" Offset="0" />
                                                    <GradientStop Color="#3000" Offset="0.5" />
                                                </LinearGradientBrush>
                                            </Setter.Value>
                                        </Setter>
                                    </Trigger>
                                    <Trigger Property="IsSelected" Value="True">
                                        <Setter TargetName="Shadow" Property="Stroke">
                                            <Setter.Value>
                                                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                                    <GradientStop Color="#A000" Offset="0" />
                                                    <GradientStop Color="#3000" Offset="0.5" />
                                                </LinearGradientBrush>
                                            </Setter.Value>
                                        </Setter>
                                    </Trigger>

                                </ControlTemplate.Triggers>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </Setter.Value>
        </Setter>
    </Style>


    <!-- 
    *****************************************************************************
    BOOK VISUALS
    *****************************************************************************
    -->

    <ViewModel:LibraryBookVisualCollection x:Key="BookVisuals">
        <ViewModel:LibraryBookVisual Source='..\Images\book01.png' TextLocation='10,110,61,74' TextOrientation='Horizontal' Foreground='#E0E0E0' FontSize='12' MaxTitleLength='40' MaxWordLength='10' />
        <ViewModel:LibraryBookVisual Source='..\Images\book02.png' TextLocation='10,42,50,256' TextOrientation='Vertical' Foreground='#E0E0E0' FontSize='20' MaxTitleLength='40' MaxWordLength='40' />
        <ViewModel:LibraryBookVisual Source='..\Images\book03.png' TextLocation='16,106,58,63' TextOrientation='Horizontal' Foreground='#E6E6E6' FontSize='12' MaxTitleLength='24' MaxWordLength='8' />
        <ViewModel:LibraryBookVisual Source='..\Images\book04.png' TextLocation='8,88,62,55' TextOrientation='Horizontal' Foreground='#E5E5E5' FontSize='12' MaxTitleLength='30' MaxWordLength='10' />
        <ViewModel:LibraryBookVisual Source='..\Images\book05.png' TextLocation='8,93,64,31' TextOrientation='Horizontal' Foreground='#FBFBFB' FontSize='11' MaxTitleLength='30' MaxWordLength='10' />
        <ViewModel:LibraryBookVisual Source='..\Images\book06.png' TextLocation='11,110,50,200' TextOrientation='Vertical' Foreground='#E0000000' FontSize='19' MaxTitleLength='60' MaxWordLength='30' />
        <ViewModel:LibraryBookVisual Source='..\Images\book07.png' TextLocation='17,30,50,270' TextOrientation='Vertical' Foreground='#303030' FontSize='22' MaxTitleLength='60' MaxWordLength='40' />
        <ViewModel:LibraryBookVisual Source='..\Images\book08.png' TextLocation='11,69,41,41' TextOrientation='Horizontal' Foreground='#CDCDCD' FontSize='11' MaxTitleLength='16' MaxWordLength='8' />
        <ViewModel:LibraryBookVisual Source='..\Images\book09.png' TextLocation='13,100,41,283' TextOrientation='Vertical' Foreground='#B0B0B0' FontSize='16' MaxTitleLength='40' MaxWordLength='40' />
        <ViewModel:LibraryBookVisual Source='..\Images\book10.png' TextLocation='14,133,55,48' TextOrientation='Horizontal' Foreground='#404040' FontSize='12' MaxTitleLength='24' MaxWordLength='8' />
        <ViewModel:LibraryBookVisual Source='..\Images\book11.png' TextLocation='14,32,33,274' TextOrientation='Vertical' Foreground='#303030' FontSize='18' MaxTitleLength='40' MaxWordLength='40' />
        <ViewModel:LibraryBookVisual Source='..\Images\book12.png' TextLocation='14,83,50,168' TextOrientation='Vertical' Foreground='#E0E0E0' FontSize='16' MaxTitleLength='50' MaxWordLength='25' />
        <ViewModel:LibraryBookVisual Source='..\Images\book13.png' TextLocation='14,106,64,59' TextOrientation='Horizontal' Foreground='#D0FFFFFF' FontSize='14' MaxTitleLength='30' MaxWordLength='10' />
        <ViewModel:LibraryBookVisual Source='..\Images\book14.png' TextLocation='15,20,50,157' TextOrientation='Vertical' Foreground='#E0E0E0' FontSize='16' MaxTitleLength='50' MaxWordLength='25' />
        <ViewModel:LibraryBookVisual Source='..\Images\book07.png' TextLocation='17,30,50,270' TextOrientation='Vertical' Foreground='#303030' FontSize='14' MaxTitleLength='100' MaxWordLength='60' />
    </ViewModel:LibraryBookVisualCollection>

</ResourceDictionary>